package com.qianli.cashmama.trade.application.highMark;

/**
 * @author frank
 * @Description: 用户信息枚举
 * @date 下午2:44 2017/9/5
 */
public enum UserProfileTypeEnum {

    BASE(1, "Basic"),
    WORK(2, "Working"),
    CONTRACT(3, "Reference Info"),
    COMPLETE(99, "Finished"),
    RESIDENCE(4, "Residence Info"),
    EXTRA_WORK(5, "Extra Work"),
    QUESTION(8, "Question");

    UserProfileTypeEnum(Integer type, String name) {
        this.type = type;
        this.name = name;
    }

    public static UserProfileTypeEnum getEnumByType(Integer type) {
        UserProfileTypeEnum userProfileTypeEnum = null;
        for (UserProfileTypeEnum enums : UserProfileTypeEnum.values()) {
            if (enums.getType() == type) {
                userProfileTypeEnum = enums;
                break;
            }
        }
        return userProfileTypeEnum;
    }

    private Integer type;

    private String name;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
